﻿HmJS.$Import('util.dom.TOC');
HmJS.$Import('util.effect.ScrollSidebar');
//HmJS.$Import('core.domready');
HmJS.$Import('more.fx.smoothscroll');

HmJS.register('demo.module.util.dom.toc', function ($ns) {
	var that = {};

	that.todo = function () {
		var toc = new $ns.util.dom.TOC('toc');

		new Fx.SmoothScroll({ duration: 300 });

		var sidebar = new $ns.util.effect.ScrollSidebar('toc', {

			offsets: { x: 670, y: 10 }

		});
	};

	return that;
});
